In the xc_translate_foreign_address function from libxc, there is a
check on the page directory entry to see if the page is 4K or 4M.
However, the check is looking at bit 3, when it should be looking at
bit 7. This patch fixes the problem.
Signed-off-by: Bryan D. Payne <bryan@thepaynes.cc>
/* Page Table */
- if (pde & 0x00000008) { /* 4M page (or 2M in PAE mode) */
+ if (pde & 0x00000080) { /* 4M page (or 2M in PAE mode) */
DPRINTF("Cannot currently cope with 2/4M pages\n");
exit(-1);
} else { /* 4k page */